﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ref2010r.aspx.cs" Inherits="Updms.Ref.Ref2010r" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>▒ UPDMS [Ref2010r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body onload="setResize();initMenu();">
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Ref2010r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
			<tr>
				<td class="lbl" width="10%"><asp:Literal id="ltr_layout" Text="레이아웃" runat="server" /></td>
				<td class="ctl" width="15%"><asp:RadioButtonList id="rbl_layout" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow"></asp:RadioButtonList></td>
				<td class="lbl" width="10%"><asp:Literal id="ltr_search_shop_id" Text="업소명" runat="server" /></td>
				<td class="ctl" width="15%"><img src="../Common/Images/application_form.png" align="absmiddle" alt="multi_check" class="hand" onclick="showHiddenDiv('div_search_shop_id', event);" /></td>
				<td class="lbl" width="10%"><asp:Literal id="ltr_search_nick_nm" Text="예명" runat="server" /></td>
				<td class="ctl" width="15%"><asp:textbox id="txt_search_nick_nm" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
				<td class="lbl" width="10%"><asp:Literal id="ltr_search_base_ym" Text="기준년월" runat="server" /></td>
				<td class="ctl" width="15%">
					<ul class="horizontal">
						<li style="width:59%;"><asp:DropDownList id="ddl_search_base_year" runat="server" CssClass="ddl"></asp:DropDownList></li>
						<li style="width:41%;"><asp:dropdownlist id="ddl_search_base_month" runat="server" CssClass="ddl">
							<asp:ListItem Value="01">01</asp:ListItem>
							<asp:ListItem Value="02">02</asp:ListItem>
							<asp:ListItem Value="03">03</asp:ListItem>
							<asp:ListItem Value="04">04</asp:ListItem>
							<asp:ListItem Value="05">05</asp:ListItem>
							<asp:ListItem Value="06">06</asp:ListItem>
							<asp:ListItem Value="07">07</asp:ListItem>
							<asp:ListItem Value="08">08</asp:ListItem>
							<asp:ListItem Value="09">09</asp:ListItem>
							<asp:ListItem Value="10">10</asp:ListItem>
							<asp:ListItem Value="11">11</asp:ListItem>
							<asp:ListItem Value="12">12</asp:ListItem>
						</asp:dropdownlist></li>
					</ul>
				</td>
			</tr>
			<tr>
				<td class="lbl"><asp:Literal id="ltr_search_homerun_yn" Text="홈런" runat="server" /></td>
				<td class="ctl"><asp:DropDownList id="ddl_search_homerun_yn" runat="server" CssClass="ddl"></asp:DropDownList></td>
				<td class="lbl"><asp:Literal id="ltr_search_satisfaction" Text="만족도" runat="server" /></td>
				<td class="ctl">
					<ul class="horizontal">
						<li><asp:textbox id="txt_search_satisfaction" runat="server" Width="20" CssClass="ib_read_only"></asp:textbox></li>
						<li style="width:4px;height:22px">&nbsp;</li>
						<li style="height:22px"><asp:textbox id="txt_search_satisfaction_slider" runat="server"></asp:textbox></li>
					</ul>
				</td>
				<td class="lbl"><asp:Literal id="ltr_search_contents" Text="내용" runat="server" /></td>
				<td class="ctl"><asp:textbox id="txt_search_contents" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
				<td class="lbl"><asp:Literal id="ltr_search_keyword" Text="키워드" runat="server" /></td>
				<td class="ctl"><asp:textbox id="txt_search_keyword" runat="server" Width="97%" CssClass="ib_b"></asp:textbox></td>
			</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<div id="div_box">
			<table class="default">
				<tr>
					<td valign="top">
						<!-- 리스트셋 시작 -->
						<table cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr>
								<td style="padding:0 0 0 254px">
									<table id="tabel_btn_month" class="control" runat="server">
										<tr>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_month" ToolTip="전월" runat="server" OnClick="ibtn_prev_month_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전월" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:Label ID="lbl_this_month" CssClass="sub_title" runat="server" /></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_this_month" ToolTip="당월" runat="server" OnClick="ibtn_this_month_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당월" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_next_month" ToolTip="차월" runat="server" OnClick="ibtn_next_month_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차월" /></asp:linkbutton></td>
										</tr>
									</table>
									<table id="tabel_btn_year" class="control" runat="server">
										<tr>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_year" ToolTip="전년" runat="server" OnClick="ibtn_prev_year_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전년" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:Label ID="lbl_this_year" CssClass="sub_title" runat="server" /></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_this_year" ToolTip="당년" runat="server" OnClick="ibtn_this_year_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당년" /></asp:linkbutton></td>
											<td style="padding:1px;"><asp:linkbutton id="ibtn_next_year" ToolTip="차년" runat="server" OnClick="ibtn_next_year_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차년" /></asp:linkbutton></td>
											<td><a href="#this_month" class="sbtn sbtn_arrow_b div_right" style="margin:0 0 0 20px;" title="당월"></a></td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top">
									<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" OnRowDataBound="GridView1_RowDataBound"  AutoGenerateColumns="False" EnableViewState="true">
										<Columns>
											<asp:BoundField DataField="Sun" HeaderText="일" HtmlEncode="False" HeaderStyle-ForeColor="Red">
												<ItemStyle HorizontalAlign="Left" Width="12%" />
											</asp:BoundField>
											<asp:BoundField DataField="Mon" HeaderText="월" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Tue" HeaderText="화" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Wed" HeaderText="수" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Thu" HeaderText="목" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Fri" HeaderText="금" HtmlEncode="False">
												<ItemStyle HorizontalAlign="Left" Width="15%" />
											</asp:BoundField>
											<asp:BoundField DataField="Sat" HeaderText="토" HtmlEncode="False" HeaderStyle-ForeColor="Blue">
												<ItemStyle HorizontalAlign="Left" Width="13%" />
											</asp:BoundField>
										</Columns>
									</asp:GridView>
								</td>
							</tr>
						</table>
						<!-- 리스트셋 끝 -->
					</td>
				</tr>
			</table>
			</div>
			<!-- 상세보기 시작 -->
			<div id="div_detail" style="width:376px;padding:0 4px 0 0;" runat="server">
			<div class="sub_title_icon" style="margin:11px 0 0 0;"><asp:Literal id="ltr_stitle_total_chart" Text="상세내용" runat="server" /><a id="arrow_top" href="#" title="top" class="sbtn sbtn_arrow_t div_right" runat="server"></a></div>
			<table id="table_detail" class="table_detail">
				<tr>
					<td class="lbl" width="22%"><asp:Literal id="ltr_shop_nm" Text="업소명" runat="server" /></td>
					<td class="ctl" width="28%"><asp:Label id="lbl_shop_nm" runat="server" /></td>
					<td class="lbl" width="22%"><asp:Literal id="ltr_nick_nm" Text="예명" runat="server" /></td>
					<td class="ctl" width="28%"><asp:Label id="lbl_nick_nm" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_tour_dt" Text="방문일" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_tour_dt" runat="server" /></td>
					<td class="lbl"><asp:Literal id="ltr_tour_time" Text="시간" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_tour_time" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_location" Text="위치" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_location" runat="server" /></td>
					<td class="lbl"><asp:Literal id="ltr_place" Text="장소" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_place" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_price" Text="가격" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_price" runat="server" /></td>
					<td class="lbl"><asp:Literal id="ltr_attach_file_info" Text="첨부파일" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_attach_file_info" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_homerun_yn" Text="홈런" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_homerun_yn" runat="server" /></td>
					<td class="lbl"><asp:Literal id="ltr_satisfaction" Text="만족도" runat="server" /></td>
					<td class="ctl"><asp:Label id="lbl_satisfaction" runat="server" /></td>
				</tr>
				<tr>
					<td class="lbl" style="height:241px;"><asp:Literal id="ltr_contents" Text="내용" runat="server" /></td>
					<td class="ctl" style="padding:1px;" colspan="3"><asp:textbox id="txt_contents" runat="server" Width="97.2%" CssClass="ib_b tb_scroll" TextMode="MultiLine" Rows="10" Height="233"></asp:textbox><div id="div_admin_pw" visible="false" class="div_admin_pw_ref2010r" title="Administrator's password" runat="server"><asp:textbox id="txt_admin_pw" runat="server" Width="98%" CssClass="ib_b" TextMode="Password"></asp:textbox></div></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_keyword" Text="키워드" runat="server" /></td>
					<td class="ctl" colspan="3"><asp:Label id="lbl_keyword" runat="server" /></td>
				</tr>
			</table>
			</div>
			<!-- 상세보기 끝 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<div id="div_search_shop_id" class="div_scroll div_multi_box" style="display:none;height:200px;width:140px;position:absolute;overflow-y:auto;">
				<asp:CheckBoxList id="cbl_search_shop_id" runat="server" RepeatDirection="Vertical" CssClass="cbl_vertical"></asp:CheckBoxList>
			</div>
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<input id="h_seq" type="hidden" name="h_seq" runat="server" />
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			<asp:linkbutton id="lbtn_view_detail" runat="server" OnClick="lbtn_view_detail_Click" />
			<asp:linkbutton id="lbtn_admin_pw" runat="server" OnClick="lbtn_admin_pw_Click" />
			</div>
			<!-- 히든값 끝 -->
			<!--슬라이더-->
			<act:SliderExtender ID="se_search_satisfaction" runat="server"
				TargetControlID="txt_search_satisfaction_slider"
				BoundControlID="txt_search_satisfaction"
				BehaviorID="SatisfactionSlider"
				EnableHandleAnimation="true"
				TooltipText="{0}"
				Length="130"
				Decimals="1"
				Minimum="5.0"
				Maximum="9.9" />
			<!--영역고정-->
			<act:AlwaysVisibleControlExtender ID="avc_detail" runat="server"
				TargetControlID="div_detail" BehaviorID="div_detail_b"
				VerticalSide="Top"
				VerticalOffset="195"
				HorizontalSide="Right"
				HorizontalOffset="0"
				ScrollEffectDuration=".100"/>
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	setTimeout("window.onresize=setResize", 0);

	//해상도에 맞게 넓이 재지정
	function setResize() {
		var div_box = $("div_box");
		var menuHide = $("menuHide"); //메뉴가 숨겨져 있는지 여부
		var menu_width = 565; 		//메뉴가 보여지면 메뉴만큼 뺀다.	185 + 380(상세)

		//메뉴가 숨겨지면
		if (menuHide != "undefined" && menuHide.style.display == "none") {
			menu_width = 413; //33 + 380(상세)
		}

		var windowWidth = document.documentElement.clientWidth - menu_width;
		div_box.style.width = windowWidth + "px";
	}

	//엔터검색
	function enterSearchOnPage(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			__doPostBack('ibtn_search', '');
		}
	}

	//상세보기
	function viewDetail(seq) {
		$("h_seq").value = seq;
		__doPostBack('lbtn_view_detail', '');
	}

	//엔터검색 - 관리자비번
	function enterSearchAdminPw(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			__doPostBack('lbtn_admin_pw', '');
		}
	}
</script>
</body>
</html>